package com.zp.io;

public class FileTest7 {
	//使用递归计算菲薄而拿起数列；
	public int fab(int num){
		if(1 == num || 2 == num){
			return 1;
		}
		else{
			return fab(num - 1) + fab(num - 2);
		}
	}
	
	public static void main(String[] args) {
		FileTest7 test = new FileTest7();
		System.out.println(test.fab(9));
	}
}
